/* 全局样式 */
body {
    margin: 0;
    background-color: #eee;
}
button,
input {
    outline: none;
    border: none;
}
button {
    cursor: pointer;
}
ul {
    margin: 0;
    list-style: none;
    padding: 0;
}
/* 头部样式 */
header {
    height: 70px;
    line-height: 70px;
    padding-left: 20px;
    color: #b3bcc5;
    display: flex;
    align-items: center;
    background-image: linear-gradient(to right, #3b4955, #3b4955aa, #ccc);
    position: relative;
}
header .logo {
    width: 40px;
    height: 40px;
    font-size: 0;
}
header .logo img {
    width: 100%;
}
@keyframes jump {
    from {
        transform: translateY(15px);
    }
    to {
        transform: translateY(-15px);
    }
}
header > span {
    font-size: 20px;
    color: #eee;
    font-weight: 600;
    margin-left: 10px;
    text-shadow: 2px 4px 5px #000;
    animation: jump 0.7s infinite alternate;
}
header > span:nth-of-type(2) {
    animation-delay: 0.25s;
}
header > span:nth-of-type(3) {
    animation-delay: 0.5s;
}
header > span:nth-of-type(4) {
    animation-delay: 0.75s;
}
header button {
    padding: 5px 8px;
    border-radius: 7px;
    display: none;
    transition: all 0.3s;
}
@keyframes btn {
    from {
        transform: rotate(45deg);
    }
    to {
        transform: rotate(-45deg);
    }
}
header button:hover {
    transform: scale(1.2);
}
header button:hover span {
    animation: btn 0.8s infinite ease-in-out alternate;
}
header button span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #111;
}
header ul {
    background-color: #000c;
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    z-index: 1;
}
header li {
    text-align: center;
    height: 45px;
    line-height: 45px;
    cursor: pointer;
    opacity: 0.7;
}
header li:hover {
    opacity: 1;
}
/* 主体 */
.body {
    display: flex;
    justify-content: space-between;
}
/* 左侧导航栏 */
.nav-list {
    height: calc(100vh - 70px);
    width: 200px;
    background-color: rgb(59, 73, 85);
    overflow: hidden;
    color: #b3bcc5;
}
.nav-list dl {
    padding-left: 20px;
    margin: 0;
}
.nav-list dt,
.nav-list dd {
    height: 50px;
    line-height: 50px;
}
.nav-list .active {
    background-color: #eee;
    color: #354457;
    margin-left: -20px;
    padding-left: 60px;
}
/* 内容区 */
.content {
    flex: 1 1 auto;
}
/* 学生列表 */
.stu-list button {
    color: #fff;
    padding: 5px 15px;
}
.stu-list .search-box {
    margin: 10px;
}
.stu-list .search-box > * {
    margin: 0 10px;
}
.stu-list .search-box .search-inp {
    width: 450px;
    padding: 10px 0;
    padding-left: 15px;
}
.stu-list .search-btn {
    background-color: #409eff;
}
.stu-list .back-btn {
    background-color: #5cb85c;
}
.stu-list table {
    width: 100%;
    text-align: center;
}
.stu-list tr {
    height: 40px;
}
.stu-list th {
    background-color: #e3e8ee;
}
.stu-list td {
    background-color: #fff;
}
.stu-list .edit-btn {
    background-color: #409eff;
}
.stu-list .del-btn {
    background-color: #5cb85c;
}
/* 分页 */
.stu-list .pagination {
    position: absolute;
    left: 55%;
    transform: translateX(-50%);
    top: 650px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    width: 350px;
}
.stu-list .pagination li {
    width: 28px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border: 1px solid #666;
    background-color: #afeeee;
    cursor: pointer;
    user-select: none;
}
.stu-list .pagination .cur_page {
    background-color: dodgerblue;
    color: #fff;
}
/* 新增学生 */
.stu-add {
    display: none;
    margin: 0 auto;
    width: 300px;
}
.stu-add .add-form {
    margin-top: 50px;
    width: max-content;
}
.form-item input[type="text"] {
    padding: 5px 5px 5px 10px;
    width: 290px;
}
.form-item input[type="text"]:focus {
    box-shadow: 0 0 2px #1E90FFAA,
    0 0 4px #1E90FFAA,
    0 0 6px #1E90FFAA,
    0 0 8px #1E90FFAA;
}
.form-item {
    height: 40px;
    line-height: 40px;
    text-align: left;
}
.form-item label:first-of-type {
    width: 60px;
    display: inline-block;
    margin-right: 15px;
    text-align-last: justify;
}
.form-item:last-child {
    text-align: center;
}
.form-item button {
    color: #fff;
    padding: 5px 15px;
}
.form-item .submit-btn,
.form-item .change-btn {
    background-color: #409eff;
}
.form-item .reset-btn,
.form-item .cancel-btn {
    background-color: #5cb85c;
}
.stu-add .tips {
    display: none;
    position: absolute;
    left: 50%;
    top: 80px;
    border: 1px solid #000;
    background-color: #afeeee;
    padding: 5px 20px;
    color: red;
}
.stu-charts {
    display: none;
    height: calc(100vh - 70px);
    overflow-y: scroll;
}
.stu-charts > div {
    width: 500px;
    height: 500px;
    margin: 50px auto;
    border: 1px solid #000;
    vertical-align: top;
}
.stu-charts .address-chart{
    width: 730px;
}
/* 修改框 */
.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333c;
    text-align: center;
}
.mask .edit-form {
    margin: 50px auto 0;
    background-color: aquamarine;
    width: max-content;
    padding: 20px 30px 20px 20px;
    border-radius: 30px;
}
@media screen and (max-width: 768px) {
    header button {
        display: block;
    }
    header .logo {
        margin-left: 35%;
    }
    .nav-list {
        display: none;
    }
}
